//
//  LGNFilterCollectionReusableView.m
//  LGNnglishTeaching
//
//  Created by 刘亚军 on 2021/11/4.
//  Copyright © 2021 刘亚军. All rights reserved.
//

#import "LGNFilterCollectionReusableView.h"
#import "LGKConst.h"
@interface LGNFilterCollectionReusableView ()
@property (nonatomic,strong) UILabel *titleLab;
@end
@implementation LGNFilterCollectionReusableView
- (instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        [self addSubview:self.titleLab];
        [self.titleLab mas_makeConstraints:^(MASConstraintMaker *make) {
            make.center.equalTo(self);
            make.left.equalTo(self).offset(LG_IS_IPAD ? 15 : 10);
        }];
    }
    return self;
}
- (void)setTitleStr:(NSString *)titleStr{
    _titleStr = titleStr;
    self.titleLab.text = titleStr;
}
- (UILabel *)titleLab{
    if (!_titleLab) {
        _titleLab = [UILabel new];
        _titleLab.font = [UIFont systemFontOfSize:LG_IS_IPAD ? 17 : 16 weight:UIFontWeightMedium];
        _titleLab.textColor = LG_ColorWithHex(0x252525);
    }
    return _titleLab;
}
@end
